package cn.com.cifi.mars.constant;

import static org.hamcrest.CoreMatchers.nullValue;

import cn.com.cifi.mars.util.StrUtils;

/** 
* @Description:  取数系统枚举
* @Author: wy
* @Date:  
*/ 

public enum FetchNnumberEnum {
    NOS("nos","NOS系统"),
    MY("my","明源系统"),
    INVESTMENT_SYSTEM("investmentSystem","投资系统")
    ;

    private String key;
    private String value;

    FetchNnumberEnum(String key,String value) {
        this.key = key;
        this.value = value;
    }


    public static String getValueByKey(String key){
    	if(StrUtils.isEmpty(key)) {
    		return null;
    	}
        for(FetchNnumberEnum fetchNnumberEnum:FetchNnumberEnum.values()){
            if(key.equals(fetchNnumberEnum.getKey())){
                return fetchNnumberEnum.getValue();
            }
        }
        return  null;
    }

    /**
     * @return the key
     */
    public String getKey() {
        return key;
    }
    /**
     * @return the value
     */
    public String getValue() {
        return value;
    }

}
